package com.ytjj.qmyx.admin.mapper;

import com.ytjj.qmyx.admin.model.ComplaintsRegistration;
import com.ytjj.qmyx.admin.model.ComplaintsRegistrationExample;
import java.util.List;

import com.ytjj.qmyx.admin.model.response.complaints.ComplaintsRegistrationResponse;
import org.apache.ibatis.annotations.Param;

public interface ComplaintsRegistrationMapper {
    long countByExample(ComplaintsRegistrationExample example);

    int deleteByExample(ComplaintsRegistrationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ComplaintsRegistration record);

    int insertSelective(ComplaintsRegistration record);

    List<ComplaintsRegistration> selectByExample(ComplaintsRegistrationExample example);

    ComplaintsRegistration selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ComplaintsRegistration record, @Param("example") ComplaintsRegistrationExample example);

    int updateByExample(@Param("record") ComplaintsRegistration record, @Param("example") ComplaintsRegistrationExample example);

    int updateByPrimaryKeySelective(ComplaintsRegistration record);

    int updateByPrimaryKey(ComplaintsRegistration record);

    /**
     * 删除登记信息
     */
    int delByComplaintId(@Param("complaintId") String complaintId);

    /**
     * 查看登记信息
     * @param complaintId
     * @return
     */
    List<ComplaintsRegistrationResponse> queryComplaintsRegistration(@Param("complaintId")String complaintId);

    /**
     * 查看登记信息
     * @param complaintIds
     * @return
     */
    List<ComplaintsRegistrationResponse> queryRegistrationByParams(@Param("complaintIds")List<String> complaintIds);
}